<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>API TEST</title>
<style>
.body{ font-size:14.5px;}
</style>
</head>

<body>
<div align="center">
<div style="width:800px;">
<form id="form_api_test" name="form_api_test" method="post" action="api_test_do.php">
  <p>API TEST</p>
  <p>
  	Apiversion:
    <input name="apiversion" type="text" id="apiversion" value="1.1" size="4" />
    Appid:
    <input name="appid" type="text" id="appid" value="1" size="4" />
    
    Count:
    <input name="count" type="text" id="count" value="1" size="4" />
    <input type="submit" name="button" id="button" value="Submit" />
  </p>
  <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
    <tr>
      <td width="31%" height="35" align="center" bgcolor="#CCCCCC">Key</td>
      <td width="41%" align="center" bgcolor="#CCCCCC">Value</td>
      <td width="28%" align="center" bgcolor="#CCCCCC">Type</td>
    </tr>
<?php 
$input_count = 10;
if(!empty($_GET["input_count"])) $input_count = $_GET["input_count"];
for($i=0; $i<$input_count; $i++){ ?>
    <tr>
      <td height="30" align="center" bgcolor="#FFFFFF">
        <input name="key[]" type="text" id="key[]" size="30" />      </td>
      <td align="center" bgcolor="#FFFFFF"><input name="value[]" type="text" id="value[]" size="80" /></td>
      <td align="center" bgcolor="#FFFFFF">
        <select name="type[]" id="type[]">
          <option value="string" selected="selected">String</option>
          <option value="int">Int</option>
          <option value="md5">MD5</option>
        </select>
      </td>
    </tr>
<?php }?>
  </table>
</form>
</div>
</div>
</body>
</html>
